home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
misc
/
samples2
/
parse.bas
< prev
next >
Wrap
BASIC Source File
|
1995-02-09
|
695b
|
25 lines
'Create a data type to hold each part of the record
'These can only be defined i a module, not a form
Type RecordData
LastName As String
FirstName As String
Phone As String
Info As String
End Type
'Dimension an array to hold each record
'read from the data file.
'You might prefer to use a dynamic area, rather
'than explicitly stating the size of the array.
Global RecordItem(10) As RecordData
'Declare a variable to hold the data file's name
Global FileName As String
'Declare a variable to indicate a carriage return/line feed
Global CRLF As String
'By dimensioning variables here, they are available to all
'procedures within the entire program.